deleting an item from a vector c#

83

deleting an item from a vector c# -

int[] numbers = { 1, 3, 4, 9, 2 };
int numToRemove = 4;
numbers = numbers.Where(val => val != numToRemove).ToArray();

Comments

Submit
0 Comments